package com.kun.companion.core.ui.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * WebView组件中的js日志桥接对象
 *
 * @author gzc
 * @since 2025/2/24
 **/
public class JsLogger {
    private static final Logger log = LoggerFactory.getLogger(JsLogger.class);

    public void log(String message) {
        log.info("[JS] {}", message);
    }

    public void info(String message) {
        log.info("[JS] {}", message);
    }

    public void warn(String message) {
        log.warn("[JS] {}", message);
    }

    public void debug(String message) {
        log.debug("[JS] {}", message);
    }

    public void error(String message) {
        log.error("[JS] {}", message);
    }

    public void err(String message) {
        log.error("[JS] {}", message);
    }
}
